home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Shell_Printf_h
- #define __Shell_Printf_h
-
- #ifndef __Shell_TextRect_h
- #include "Shell.TextRect.h"
- #endif
-
- void Shell_Printf( const char *fmt, ...);
- /* This can be used exactly like printf. It outputs to */
- /* Shell_'s default text window. i.e. it just does a */
- /* Shell_TextRectPrintf( NULL, ...) */
- /* You could do a '#define printf Shell_Printf' to make */
- /* all text go to the shell window. */
-
- void Shell_WaitPrintf( const char *fmt, ...);
- /* This stores the text, and registers an event_NULL handler to print the text */
- /* on the next event_NULL. This allows you to call this function from within */
- /* a window-redraw function and output diagnostic info. Normally the Wimp calls */
- /* which Shell_TextRectPrint uses would confuse the Wimp if they were called in */
- /* the middle of a redraw. */
-
- void Shell_SafeWaitPrintf( const char *fmt, ...);
- /* As Shell_WaitPrintf, but replaces all control characters by 'ยค' */
-
-
- #define Shell_Print( string) Shell_TextRectPrint( NULL, string)
- /* Use this for very long strings, as Shell_*Printf have a string-length limit */
- /* of Shell_stringMAX (=1023 at the moment). */
-
- #endif
-
-